Ext.define("SHApp.System.Maintenance.FormTest", {
    extend: "BLBTSystem.Form",
    winWidth: 315,
    winHeight: 180,
    layout: { type: "vbox", align: "stretch" },
    requires: ["SHApp.System.Maintenance.MaintenComBox"],
    cmb1: null,
    cmb2: null,
    initComponent: function () {
        Ext.apply(this);
        this.createCmbCategory();
        this.createCmbCategory1();
        this.createItems();
        this.callParent(arguments);
    },
    createItems: function () {
        var me = this;
        me.items = [
        me.cmb1,
        me.cmb2
	];
    },
    createCmbCategory: function () {
        var me = this;
        var cmb1 = Ext.create("SHApp.System.Maintenance.MaintenClassComBox", {
            fieldLabel: "分类",
            hidden: true
        });

        /*
        cmb1.on("select", function (f, r, o) {
        me.cmb2.clearValue();
        if (r && r.length > 0) {
        me.cmb2.loadByCategory(r[0].data.Id);
        }
        });            
        */

        me.cmb1 = cmb1;
    },
    createCmbCategory1: function () {
        var me = this;
        var cmb2 = Ext.create("SHApp.System.Maintenance.MaintenComBox", {
            fieldLabel: "证件类型",
            matchClass: "证件类型",
            hasAll: true
        });
        me.cmb2 = cmb2;
    }
});